package com.smart4j.framework.thread.impl;

import com.smart4j.framework.thread.Sequence;

/**
 * description: 创建一个客户端线程 测试 --- 继承 java.lang.Thread 类
 * @version v1.0
 * @author w
 * @date 2018年10月10日下午9:50:22
 */
public class ClientThread extends Thread {
	
	private Sequence  sequence;

	public ClientThread(Sequence sequence) {
		this.sequence = sequence;
	}
	
	@Override
	public void run() {
		for (int i = 0; i < 5 ; i++) {
			System.out.println(Thread.currentThread().getName() + " ---->  "+ sequence.getNumber());
		}
	}
	
	
}
